namespace TaskKernel.Domain.Services.Permission
{
    public class ParticipantUnclosedEditF : IPermission<TaskPermissions>
    {
        #region IPermission<TaskPermissions> Members

        public Permissions GetPermissions(TaskPermissions app)
        {
            if ((app.Role == RoleEnum.Participant) && (!app.Task.IsClosed()))
                return new PermissionsParticipantUnclosedTaskEditPage();
            return new Permissions();
        }

        #endregion
    }
}